package cn.edu.huanghuai.newsofhuanghuai.sevice;

import cn.edu.huanghuai.newsofhuanghuai.pojo.News;
import cn.edu.huanghuai.newsofhuanghuai.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @user:whisper
 * @date:6-11
 * @description: 新闻服务层
 */


public interface NewsService {

    int addNews(News news);
    int deleteNews(int nid);
    int updateNews(News news);
    News queryNews(int nid);

    List<News> queryAllNews();

    /**
     * 根据标题 进行模糊查询
     * @param title
     * @return
     */
    List<News>queryNewsByTitle(String title);

}
